<%@ page contentType="text/html;charset=GB2312"%>
<%@ page language="java" import="java.util.*,control.database.*" %>
<%@ page import="java.sql.*"%>
<%
DataBase db=new DataBase();
DataBase db2=new DataBase();
String sql_del="delete from tUsrgrp where susrid="+session.getAttribute("susrid");
String sql_insert="insert into tUsrgrp(susrid,sgrpid)values('"+session.getAttribute("susrid")+"','"+session.getAttribute("toggles")+"')";
db.executeUpdate(sql_del);
db.closeStmt();
db.closeConn();

db2.executeUpdate(sql_insert);
db2.closeStmt();
db2.closeConn();
out.println("sql_del  "+sql_del);
out.println("sql_insert  "+sql_insert);
response.sendRedirect("show_right.jsp?susrid="+session.getAttribute("susrid"));
%>